tools/hotplug: update systemd dependency to use service instead of socket
authorOlaf Hering <olaf@aepfle.de>
Tue, 2 Dec 2014 15:39:23 +0000 (16:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 4 Dec 2014 11:57:02 +0000 (11:57 +0000)
commit268b8f1d46d758deb635f9602b94e5826db54884
treec071fab5132f117844afe5a3b5bd022da8dcefb2
parentbfac2d7a00e9e8b52fe1fc2ffb3d12a57adce96c
tools/hotplug: update systemd dependency to use service instead of socket

Since commit 4542ae340d75bd6319e3fcd94e6c9336e210aeef ("tools/hotplug:
systemd xenstored dependencies") all service files use the .socket unit
as startup dependency. While this happens to work for boot it fails for
shutdown because a .socket does not seem to enforce ordering. When
xendomains.service runs during shutdown then systemd will stop
xenstored.service at the same time.

Change all "xenstored.socket" to "xenstored.service" to let systemd know
that xenstored has to be shutdown after everything else.

Reported-by: Mark Pryor <tlviewer@yahoo.com>
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/systemd/xen-init-dom0.service.in
tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in
tools/hotplug/Linux/systemd/xenconsoled.service.in
tools/hotplug/Linux/systemd/xendomains.service.in